package com.jdbc.transaction_xml;

import java.util.List;

public class Cashier {

	private BookShopService bookShopService;

	public void setBookShopService(BookShopService bookShopService) {
		this.bookShopService = bookShopService;
	}

	public void checkout(String username, List<String> idbn) {
		for (String isbnString : idbn) {
			bookShopService.purchase(username, isbnString);
		}
	}
}
